<?php
namespace app\app\controller\v1;
use think\Db;
use app\app\util\OnlineUtils;
class MyCardController extends BaseController{


    /**
     * @return array
     *我的球星卡
     */
    public function showMyCard()
    {
//        $user_id = OnlineUtils::getUserIdBySid();
        $user_id =1;
        $my_card = Db::name('my_card')->alias('a')->join('card b','a.card_id=b.id','left')->field('a.id,a.num,b.name,concat("'.config('IMG_HEAD').'",b.img) img')->where('a.user_id','eq',$user_id)->select();
        return ft(200,'success',$my_card);
    }


    public function cardConvert()
    {
//        $user_id = OnlineUtils::getUserIdBySid();
        $user_id = 1;
    }
}
